<?php
include("../../app/View/Parts/left.ctp");
?>
	<div class="span9 container-fluid well">
		<fieldset>
			<legend>Create Header</legend>
			<div class="span12">
			<?php
				echo $this->Form->create('Header', array('type' => 'file'));
				echo $this->Form->input('site_name');
				echo "<br>";
				echo "
					<div class='span10' style='margin-left:50px'>
						<div class='delete'>
							<a href='javascript:void(0)' onClick='return delete_image(\"logo\",".$datas['Header']['id'].",\"".$base_url."\")'>
								<img src='".$base_url."/app/webroot/img/delete.png'>
							</a>
						</div>
						<div id='display_logo'>
							<img src='".$base_url."/app/webroot/upload/".$datas['Header']['logo']."' width='100' height='50'>
						</div>
					</div>
					";
				echo $this->Form->input('logo',array('type'=>'file'));
				echo "<br>";
				echo "
					<div class='span10' id='header_img' style='margin-left:50px;'>
						<div class='delete'>
							<a href='javascript:void(0)' onClick='return delete_image(\"header_image\",".$datas['Header']['id'].",\"".$base_url."\")'>
								<img src='".$base_url."/app/webroot/img/delete.png'>
							</a>
						</div>
						<div id='display_header'>
							<img src='".$base_url."/app/webroot/upload/".$datas['Header']['header_image']."' width='300' height='50'>
						</div>
					</div>
					";
				echo "<br>";
				echo $this->Form->input('header_image',array('type'=>'file'));
				echo "<br>";
				echo $this->Form->end('Save');
			?>
			</div>
			<div style="width:100%; height:10px;">&nbsp;</div>
		</fieldset>
	</div>
<div style="clear:both;"></div>